package com.speed.controller;

import com.speed.aop.ControllerLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 设备信息请求拦截
 */
@Controller
public class DeviceInfoController {

    /**
     * 请求页面数据
     * @return
     */
    @ControllerLog(remark = "请求页面数据")
    @RequestMapping(value = "getData", method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String getData(){
        return "";
    }

    /**
     * 编辑传感器，获取传感器信息
     * @return
     */
    @ControllerLog(remark = "编辑传感器，获取传感器信息")
    @RequestMapping(value = "editSensor",method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String edit(){
        return "";
    }

    /**
     * 传感器编辑结果提交
     * @return
     */
    @ControllerLog(remark = "传感器编辑结果提交")
    @RequestMapping(value = "submit",method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String submit(){
        return "";
    }

    /**
     * 获取图表显示需要的信息
     * @return
     */
    @ControllerLog(remark = "获取图表显示需要的信息")
    @RequestMapping(value = "getChartData",method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String getChartData(){
        return "";
    }

    /**
     * 获取系统状态信息
     * @return
     */
    @ControllerLog(remark = "获取系统状态信息")
    @RequestMapping(value = "getSystemData",method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String getSystemData(){
        return "";
    }

    /**
     * 获取系统设置信息
     * @return
     */
    @ControllerLog(remark = "获取系统设置信息")
    @RequestMapping(value = "setup",method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String setup(){
        return "";
    }

    /**
     * 根据用户获取用户机房列表
     * @param code  微信登录code
     * @return
     */
    @ControllerLog(remark = "根据用户获取用户机房列表")
    @RequestMapping(value = "getDevice",method = RequestMethod.POST,produces = "application/json;charset=UTF8")
    public String getDevice(@Param("code")String code){
        return "";
    }
}
